<template>
  <div class="options">
    <el-image class="img" :key="index" v-for="item, index in props.params.data.imgs" :src="item"  :fit="fit"
      :preview-src-list="props.params.data.imgs" :initial-index="index" preview-teleported />
  </div>
</template>
<script lang="ts" setup>
import { ref } from 'vue'
const props = defineProps({
  params: {
    type: Object as () => any, // 修改/删除操作携带的参数 如table_id
    required: true,
  },
})
const fit = ref('cover')
</script>
<style scoped lang="scss">
.img {
  width: 50px !important;
  height: 50px !important;
  margin-right: 16px;
  border-radius: 8px;
}


</style>